draft of split analysis code, separated from non-split analysis