cleaned up plugin.groovy