fix #419 improve tracing to file by file