re-construct directory.