add command line interface and logging in cmd