stubbed out encodeResponse