tracking program output (for printing purposes)