fix notify class to use in plugins