minor error tweak handling