bug fixes and territory management features