move bytecode loading funcs into standard lib