update with global api and events