claening up nodes.py and spliting up the building-in procedure