collect files and dirs