correcting use of the isLocal