added command line tool