now it works with groovy