now it looks at currently open files too