clean up repositories and models