WIP move commandline processing out of main
command line processing is now decoupled