restructured submitter and worker code, attempting to test timeouts