- add groovy script (for easier maintenance)