added fetch_context, get_rspec and main methods