complete logout but not efficient