initial m3pi interface code