sets root, creates index, seeds