got primitive ai working