added check for local rep