use static_mdo instead of local macro