M/scripts and refs