retry on error, some output formatting