trying to fix rest client on server