actually now works!
works on multiple files