add some output processing