bytecode fixes and updates