updated chw ft as we dont need agent code as a part of json while sending update request plus some format refractoring