added auto power-off