adopt to new errorformats patch