now this class opens input files correctly