adapt to new dpContext interface