refining error messages for failure modes