ai ported to wsio