added groovy mode