add separate flag to instrumentDir.js to keep traces in memory