trying to fix error pages