added file retrieval method