command line error handling