better battery plugin support