lame cursor, more fixes to ai