key_commit: a few tweaks to improve the json