modified for send logoff