Currently passing config as props to children. its problematic. need to change to using context so that children don't need to be direct descendants.