expose addFile and trace