trying to get logouts to work