build initial directory