change api to support bg30 server