.filename is not yet vectorized, so have to do this one at a time