refactoring of all phalanx hooks