adding some extra logout stuff