fixed import not catching invalid file content error