make client API for `type` match the server API