add read time-out
fix:clean up the error & add close
add redirect