work on response decoding