move cli to module