rework in progress: AI scripting