small refactor
job scheduler basically functional