add features that cleans up unnecessary local metrics keys