fixed class import and add  setup for ai