satisfy level 5 critic: filehandles