converted to new simplehttpclient convention