fix lobby detection and improve server detection when using the books