remove duplicated ensure_server