another try to fix hooks