changed to using a keys config