AI and API

the AI uses the API that was added to its path