get rid of legacy hooks