updated error processing and front page