added isLocal