adding context sharing functionality.