fixed fetching scratchpad timeout issue, fixed relogin issue