changes for smooth upload