add the addFile and reset method to load files manually