ported multi-context example