add ensure, references