added dir struct