removing local refs