preliminary battanalyzer commit