trying to backport rc_context