[stats] add filter before adding node, add delete node method