reading files and rendering them