added cli interface.