step 6: add a reload safeguard for master