fixes to adding counters