finished modularity scripts