second draft of groovy plugin