transform to command-line tool