reverted change to curl client, added timeout to RestClient call