implementing single file retrieval