adding command line functionality