better stack trace on malformed config.json

- don't mutate config