make connect and read timeout configurable