using unordered_map for dirlist