merge multiple dirs into a credible one