parsing response + json fixes