adding caps to mining