adds support for multiple files