check sha1 or fetch file