improved old groovy with indy error message