more work on uploading