apisvc: modified to remove warnings