updated download check to include local cache