added update method to global api