adjustments to hooks: bugfixes and "dynamical" (named) hooks