moved all node cert handling into the optional code and made it only attempt to register with a node twice