more informative messages on err