master ha
master HA
refactor the contants