move to curl/helpers