redirecting IO on the AI