renamed default to setDefault (protected keyword), removed regex method from nodes.