similarly, this seems like a good candidate for a helper function that spawns the job and returns pid