replace xt/xts with keyid