add code to userContextInheritance