finally seems to work with multiple files!