support for command line excution also