added fringe-index to top-level functions and expand-fringe-self