added the '--master-only' flag to allow checking not only master servers