tweaks to display errors