added mining variables to unit.js