reconstruct gate server

reconstruct gate server