update context temporarily