working on getting more specific error messages