adding external bwdistsc