add context inheritance