improving job scheduler