logic fixes for rooms/usernames storage and other things