use as command line tool