added snippet retrieval skeleton