fix #1382 making adding Monaco siteextension robust
fix #419 improve tracing to file by file