minor initial changes for switching to groovy
lots of debugging..
more updates and fixes..
some uncommited changes..
some good fixes..
implemented one at a time selection