added positive and negative counts, allow clearing of cache
minor fix