changing ensure to dir
adding debug instead of notify