save bytecode from tp