implementation of the client, server and distributed node