added protection from not valid trailers