improve debug message from curl