fixed response parsing