fixed some json upload stuff