fix option timeout and add option timeoutlen