few more checks to ensure server doesn't crash on invalid jobs.son