command line parsing working better