pass vector rather than full tree of files to foreground