pushing pipeline to compute shared pi and new version of multiseq avoiding repeated code