add cjoin, tjoin splitting functions