update uploader function