make sure num_jobs is properly set