rewrite2 fix stats bars
rewrite2 add logout