change open dir struct