made server root determination a bit more sensible