made it into a command line tool