fixed upload/submit scripts so that they work, but resume doesnt yet