added handling of failed updates from server