modify constructor of jobscheduler