fix issue where string env var was to cast to bool
add custom error pages for 404 errors