refine directory organization