handle multiple key definitions