change multi api to take slices of filenames and writers