moved NodeIdListSerializer to util
improved metrics export:  fixed possible leakage of data during rotation