removed reference to self.safe_create_shared_context