add join_as_master/0 and some is_master config check