swaps out getConfig for getKey to avoid NullPointerException