created a resource retriever