fix offline checks to avoid re-download