made send timeout configurable