gate server impl