added numworkers flag