building initial directory structure, entities, and rest layer