update filesWithImports to use log not error