added support for listen and notfiy