added threading command line option