minor ai mostly done