lots of debug messages in reg controller