modified flinger code to take one solenoid