adding command line parsing