callback error if both src and dst is undefined