perhaps add a

    def isLocal: Boolean = host.isEmpty