added a command line interface