minor change in server upload thread