api modification on the server