formatted output/file io