prototype hooks for adding new nodes