add nicer error pages and error messages