do not keep filehandles around; instead use the same file open method at all places