this works for a single file now.