register class for the job
refactor