print all top-level expressions, not just the last one