implementing more secd opcodes