switched out httparty for curb