copied over Serena's node and pair objects