implement gate service
update tcp gate