functionality for multiple master nodes