desperately trying to fix logout