uploading minor error handling