refactor for context based config