wait_for_event is included, not attached to client
fix api_url wasnt config option defined properly