add registry handler