add_event_source was not being called