add accepts key to setEventReactor API.