response message parsing, refactoring