logout and redo things