change config to groovy