added two more hooks