adaptive battery management