macs2 script extended