fixing the format of web service responses