tweaked logout