adding command line support.