retooled checkByLocalAlias to reduce complexity
optimized checkByClientAlias
housekeeping