modified how he program opens files