fix some deprec calls to context functions