works from grails but not from the groovy cli no idea why