impl retrieve to replace curl