added job_type arugment