added debug to file struc