updated file extension retriever