bugfixes and opcodes