change logAndExecute to submit