added file adapter check.