added filename printout to figure out where problem is