change isMaster to RSA_IS_MASTER and fix the logic for legacy config file used rsa instances