added httparty functionality