encapsulating event dispatcher vars