improved automatic resubmit