fixed up prior to groovy script