init dir struct