parser: improve parsing of multiple responses in one chunk