pull the mx script over from pengwynn