added error-page management