key retrieval works