fix directory structure for api import