export functions to add nodes in the server