helper functions to visualize files.