manage directory