add debugging outputs to extraction