unfinished transition to groovy