connection and socket timeout added