store local context scope when defining macro tag functions