rebuild dir