added more verbose error printing