working reg app with Jeremy changes