move cli stuff to cli.bs