support dest is undefined, instead to src