better handle import file resolution.