fix load files only; add trace, replacePattern