moving list of recognized keys to extra function