refactor mch through gradle