added rigid root option