added events plugin and all other stuff