use gem instead of local model for resistor