set hooks to empty lists if undefined