split groovy scripts