added support for multiple files