moved CLI to its own file