removed unused old code for upload; retry upload