adding timeout to restclient