added processing of command line arguments