Let scripts hook on protocol events