adding support for multiple files