worked on client-server key storage