added consistency in custom handler counter