fixed segment responses
many small fixes following the breaking changes list
only 3 failing integration tests remain