remove use of rcContext to simplify API