renaming also the API from server to client