prference and log out