fixing exit/log out