implement copy(to,callback) fixed #1