fixing upload protocol