error message parsing. basic logout