don't crash when there is no configuration. instead throw a helpful error message