maintain login on refresh, even server restart;add the double sided water fix from client;use old flags for roles;