updating for battery support