fixed upload stuff