update map to reflect directories structure