working server/client with statefull node implementation