optimize uploader