make error page friendly