flattens dest path
fix async