some changes for logout