fixed up some error messages