added logoff code W