page pre handler now uses his own errorcount function