minor error tweaks