fixed up error pages