made it work with groovy