cleanup of Groovy-script