fixed Job.data bug and add Job.type to job objects