add code to facilitate communication with new AI engine