fixing directory trees