copied some stuff from groovy-library template