wrote response xml handler mimicking json