add collection repository and fix file schema