made groovy dependency optional
fixed reflected api changes and updated to 0.41