prevent api import problem