moved ring node code into util_libs