adds public hook