small fixes to upload
small fixes to upload