add context calling lock