workaround for groovy bug and basic auth problem