batteryqr overhauled in rails