move app argument handler to its own function within the ignition script