wrap/unwrap functions in the node convention.