fix key.value formatting