changes for sending kps data to api