tweaks to the groovy script example