added the sfm to choose the job's mode