some improvements: error page, crash control.