adding state variables for resourceBundles so rbkey always works
moving away form name value pairs. returning ids