m7: common init