add Json server-client interactions protocol