added support for multiple file reading