re-added file based check