add option ttimeout and fix option timeout