add suport for logout