support timeouts
improve support for PUT and PATCH calls