construct dirs