update mining script.