fix naming problem with error handlers