update keymaster