more minor ai fixes