add locator compiler pass