moved argument parsing to app class