auto select master node on load