tweak config.json, trying to autodetect