added empty begin_hook to keep shell happy