this works with one file...need to try multiple files