connect timesout correctly