reworked for master writer to watch for results of writing and resubmit job if necessary