added overvoltage, overcurrent and reverse voltage protection