fix some thread bugs, and getResponseParams