fixed ordering of context setting