Plugin initialization: how does it work?