manage directory too