added ignore-root option TODO