working on logout stuff