adds ability to set a data file when rendering