add exception group handling for all commands that may raise exceptions add comments to for-else blocks