directory merge