modified SmartLocalDefs behavior