finish writing gate server waiting for testing