removed unused error pages and some debug code