rewrite ServiceStateResponse struct