add support null/not null parent context