added battery logging