made activation hooks work in plugins