adding command line control