added fetch_context, main, and get_rspec methods