use an interface for error painters