pre-processing for some special exceptions in locate()