add -threaded option