memory implementation on the client and on the server