fixing preprocess chain so that handlers methods will get the next function and can call the generic error handlers