added command line capability