file import find function implementation improved