command line tool wrapper