changed return code of groovy script. added debug output.