add isLocal param to update callback