adding index
getSwitchConfigs working