more improvements to the counter system.