use thread-safe increment and decrements