add check before increment counts and add test for preaccept ok