set root to public index