add connection-timeout and some options

add connection-timeout and some options