added internal pullup on motor switch