added cli to lib