command line parsing, better output