added root option

fixes issue #8