add halo master switch

Change-Id: Ifeb9b4e3ae6ada7d3a4acc9b790cc6508050839d