new ensure context method added to load context in relations