added more verbose error messages