added initial code to prepare a node