add .ignore and add method set root