adding first code to actually support splitfact queries