added anti-collision wrapper to plugin script