bugfix: set read/write timeout