1. fix bug
2. add gateway_server to replace gate_server