added command-line tool