do validation of command line args