updated index with flow and scripts