adds KeyMap serialization