tweaks to upload json