initialization: add support for mir