added command line interface