added handling for use as web archive