fixed upload utility