don't really wanna do this in groovy..