add adtcp handle and fix bug