fixed a bug in messages, implemented the checking of notify entries