added exception printout