accepts thread name command line
some more command line options