fix connection
add session sleep