added functionality to resolve a key-array by element