added initial data handlers on client and server.