curl output to stdout
refactor script: extract method
starting grails with "grails -reloading" makes the problem go away