added 500 error page support.