make it work with multimple files