try to remove TCPCOPY_OFFLINE, compile might not OK
rename a function