added local extension hook