attempting to fix this response decoding sludge