adding retrieval command with non-trivial bugs