export console object while fn is running