write jobs to file