made logout global