Enhanced plugin manager to work with hooks