implement a simple parser, will be use to parse complex notifications