fixing api to siplify groovy calls