extract bytecomp(), reorg code