almost done ai handler