add power voltage detection