optionally group chains of statements