allow specification of group context; only show details if in debug mode for exception; flatten successful responses