added option for having a callback after the plugin is initialized