cleanup bytecode generation