added timeout values on connection (otherwise infinite wait)