fix counter and some cookie parsing options