cleaned up imports
error handling for nonexistant job dirs