use api for percentage
fix habit conversions losing checkins