build script for plugin