add missing method to titan node, reformat code