add debug tools to track open files