update to use stacks_root and rights