front-end and counter debug