bugfixes, realized that we weren't escaping user-supplied register() names. added global debug flag