change ensure to path