optionally hide errors