add expiry setting; add dail and write timeout limit