cart accounting
fix bugs