add command line parsing