events

Event callbacks to hook into vanilla code.