update example for using dail and write timeout