broke out some functions for jobs into jobs.py