some additions to macs2-new.R