output formatting improvements