cleanup. add a DefaultErrorFormatter class