working command line parsing