moved argument parsing to own file