check on regexp before registering would have helped with debugging typos