renamed json upload to background upload in code