added groovy event scripting