support set XXXport before starting minihas