moved command line code to __init__.py