[server] use gc wrapper