simplifying context object logic