msir-internal function

Internal 'msir' functions