added curl logging