replaced filenotfound.printstacktrace with debug pritnlns