logging refinement, move cli to cli.py to keep __init__ clean