preparing for plugin