upddate target repr for easier debugging
detect content that ends unexpectedly