add support for read_timeout and write_timeout +getters/setters, timeout is deprecated now