added functionality for creating a shared context group