very crude but working code of calling a groovy script as an action