started reimplementing the command line tool