extract outputter logic