modularity searching script