battery measurement reworked, but not completed now