add timeout around connection