some upload fixes