added cli interface