added undocumented but useful registers
changed handling of security interrupt