update debug key implementation