dynamicly linking groovy when needed