draft script to auto build mastermine