add threefold text ofstream and amend digi filename config