impementing dynamic retrieval service