improve logout