fixing remote upload.