adding command line support