automatic resubmit and stdout printing