fallback to curl