fixed addJob() again. cleaner code