node serialising