updated functions

added cdbag,cedbag, and nodename