src: major battery and performance fixes