implementation and test of 'root' shortcut