add logout
update protocol