changed the way remote wars are detected