added persistence to queue/run factories #367