add native mirror macro