add a new feature: register the app