Make sure to add pathToRoot everywhere