battery module refactor, smapi support