fixed errors, added checking for other plugins(notificatios)