app/recognition code adaptation done. actual retrieval logic not yet integrated