bug fixes, and adding dividend corrections