updated keymaster lib