added --root option