small update for the hook api