adds master handling.