dir struct update