refactoring out the app name from the command