change error handling with trailers and previews