smarter ERROR_FILTER