logout improved