bind events to context
version