script for making plugin