cleaning up uploading