A (virtual) set of hooks to address #692

Signed-off-by: emanuele <emanuele45@gmail.com>