minor fixes to upload