refactor api events to aggresively look for printable keys in the metadata
[finishes #63583864]