debug, logoff now working