support inserting the signature on a reference node if specified