updated groovy scripts