added 0 hdrlen param to comp_init